package com.github_dididipapa.mall.product.dao;

import com.github_dididipapa.common.constant.ProductConstant;
import com.github_dididipapa.mall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github_dididipapa.mall.product.vo.SpuSaveVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * spu信息
 * 
 * @author dididipapa
 * @email not_found@404.com
 * @date 2025-04-26 18:14:11
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {


    Long selectIdByDetails(@Param("spuName") String spuName,
                           @Param("catelogId") Long catelogId,
                           @Param("brandId") Long brandId);


    void updateSpuStatus(@Param("spuId") Long spuId,
                         @Param("statusEnum") Integer statusEnum);
}
